sf: Get spi locally from spi_flash
authorJagan Teki <[email protected]>
Sat, 12 Dec 2015 06:21:57 +0000 (11:51 +0530)
committerJagan Teki <[email protected]>
Wed, 13 Jan 2016 13:17:25 +0000 (18:47 +0530)
commite228d6deb1540b5b11e0df6c28a1a471da44e03a
treea21c0763aed23e1692bac8afe2997ae35fd348d7
parent077678eb0c226e52a1f90edabd3369ab26065b32
sf: Get spi locally from spi_flash

For better code readabilty, get the spi pointer from
spi_flash{} locally and use it instead of direct
dereferring spi pinter as flash->spi->*

Tested-by: Jagan Teki <[email protected]>
Tested-by: Bin Meng <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
drivers/mtd/spi/spi_flash.c